#include "SerialPort.h"

int main()
{
	CSerialPort speed;
	speed.InitPort(1, 38400, 'N', 8, 1, EV_RXCHAR);

	speed.OpenListenThread();
	unsigned char a = 'a';
	while (1)
	{
		speed.ReadChar(a);
		Sleep(100);
	}

	system("pause");
	return 0;
}